<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <!-- 引入layui.css文件 -->
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css" />
    <!-- 引入当前页面的css -->
    <link rel="stylesheet" href="/assets/css/user/user_info.css" />
  </head>
  <body>
    <!-- 卡片的面板 -->
    <div class="layui-card">
      <div class="layui-card-header">修改用户信息</div>
      <div class="layui-card-body">
        <!-- 借助 lay-filter= "值",用于给指定表单集合的元素赋值和取值-->
        <form class="layui-form" lay-filter="formUserInfo" action="">
          <!-- 添加一个 隐藏域 -->
          <input type="hidden" name="id" />
          <div class="layui-form-item">
            <label class="layui-form-label">登录名称</label>
            <div class="layui-input-block">
              <!-- disabled,input状态为不可修改 -->
              <input
                type="text"
                name="username"
                required
                lay-verify="required"
                placeholder="请输入登录名称"
                autocomplete="off"
                class="layui-input"
                disabled
              />
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">用户昵称</label>
            <div class="layui-input-block">
              <input
                type="text"
                name="nickname"
                required
                lay-verify="required|nickname"
                placeholder="请输入用户昵称"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <div class="layui-form-item">
            <label class="layui-form-label">用户邮箱</label>
            <div class="layui-input-block">
              <!-- lay-verify="required|email" ,email 是人家自带的 可以直接用-->
              <input
                type="text"
                name="email"
                required
                lay-verify="required|email"
                placeholder="请输入用户邮箱"
                autocomplete="off"
                class="layui-input"
              />
            </div>
          </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formDemo">
                立即提交
              </button>
              <button
                id="resetBtn"
                type="reset"
                class="layui-btn layui-btn-primary"
              >
                重置
              </button>
            </div>
          </div>
        </form>
      </div>
    </div>
    <!-- 导入layui.all.js 文件 -->
    <script src="/assets/lib/layui/layui.all.js"></script>
    <!-- 导入axios.js 文件 -->
    <script src="/assets/lib/axios.js"></script>
    <!-- 导入common.js 文件 -->
    <script src="/assets/js/common.js"></script>
    <!-- 导入 jQuery.js 文件 -->
    <script src="/assets/lib/jquery.js"></script>
    <!-- 引入当前页面的js -->
    <script src="/assets/js/user/user_info.js"></script>
  </body>
</html>
